Optimal. Leaf size=299 \[ -\frac {\sqrt {\frac {\pi }{2}} \sqrt {d} \cos \left (4 a-\frac {4 b c}{d}\right ) C\left (\frac {2 \sqrt {b} \sqrt {\frac {2}{\pi }} \sqrt {c+d x}}{\sqrt {d}}\right )}{64 b^{3/2}}+\frac {\sqrt {\pi } \sqrt {d} \cos \left (2 a-\frac {2 b c}{d}\right ) C\left (\frac {2 \sqrt {b} \sqrt {c+d x}}{\sqrt {d} \sqrt {\pi }}\right )}{16 b^{3/2}}+\frac {\sqrt {\frac {\pi }{2}} \sqrt {d} \sin \left (4 a-\frac {4 b c}{d}\right ) S\left (\frac {2 \sqrt {b} \sqrt {\frac {2}{\pi }} \sqrt {c+d x}}{\sqrt {d}}\right )}{64 b^{3/2}}-\frac {\sqrt {\pi } \sqrt {d} \sin \left (2 a-\frac {2 b c}{d}\right ) S\left (\frac {2 \sqrt {b} \sqrt {c+d x}}{\sqrt {d} \sqrt {\pi }}\right )}{16 b^{3/2}}-\frac {\sqrt {c+d x} \cos (2 a+2 b x)}{8 b}+\frac {\sqrt {c+d x} \cos (4 a+4 b x)}{32 b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.46, antiderivative size = 299, normalized size of antiderivative = 1.00, number of steps used = 14, number of rules used = 7, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.292, Rules used = {4406, 3296, 3306, 3305, 3351, 3304, 3352} \[ -\frac {\sqrt {\frac {\pi }{2}} \sqrt {d} \cos \left (4 a-\frac {4 b c}{d}\right ) \text {FresnelC}\left (\frac {2 \sqrt {\frac {2}{\pi }} \sqrt {b} \sqrt {c+d x}}{\sqrt {d}}\right )}{64 b^{3/2}}+\frac {\sqrt {\pi } \sqrt {d} \cos \left (2 a-\frac {2 b c}{d}\right ) \text {FresnelC}\left (\frac {2 \sqrt {b} \sqrt {c+d x}}{\sqrt {\pi } \sqrt {d}}\right )}{16 b^{3/2}}+\frac {\sqrt {\frac {\pi }{2}} \sqrt {d} \sin \left (4 a-\frac {4 b c}{d}\right ) S\left (\frac {2 \sqrt {b} \sqrt {\frac {2}{\pi }} \sqrt {c+d x}}{\sqrt {d}}\right )}{64 b^{3/2}}-\frac {\sqrt {\pi } \sqrt {d} \sin \left (2 a-\frac {2 b c}{d}\right ) S\left (\frac {2 \sqrt {b} \sqrt {c+d x}}{\sqrt {d} \sqrt {\pi }}\right )}{16 b^{3/2}}-\frac {\sqrt {c+d x} \cos (2 a+2 b x)}{8 b}+\frac {\sqrt {c+d x} \cos (4 a+4 b x)}{32 b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3296
Rule 3304
Rule 3305
Rule 3306
Rule 3351
Rule 3352
Rule 4406
Rubi steps
\begin {align*} \int \sqrt {c+d x} \cos (a+b x) \sin ^3(a+b x) \, dx &=\int \left (\frac {1}{4} \sqrt {c+d x} \sin (2 a+2 b x)-\frac {1}{8} \sqrt {c+d x} \sin (4 a+4 b x)\right ) \, dx\\ &=-\left (\frac {1}{8} \int \sqrt {c+d x} \sin (4 a+4 b x) \, dx\right )+\frac {1}{4} \int \sqrt {c+d x} \sin (2 a+2 b x) \, dx\\ &=-\frac {\sqrt {c+d x} \cos (2 a+2 b x)}{8 b}+\frac {\sqrt {c+d x} \cos (4 a+4 b x)}{32 b}-\frac {d \int \frac {\cos (4 a+4 b x)}{\sqrt {c+d x}} \, dx}{64 b}+\frac {d \int \frac {\cos (2 a+2 b x)}{\sqrt {c+d x}} \, dx}{16 b}\\ &=-\frac {\sqrt {c+d x} \cos (2 a+2 b x)}{8 b}+\frac {\sqrt {c+d x} \cos (4 a+4 b x)}{32 b}-\frac {\left (d \cos \left (4 a-\frac {4 b c}{d}\right )\right ) \int \frac {\cos \left (\frac {4 b c}{d}+4 b x\right )}{\sqrt {c+d x}} \, dx}{64 b}+\frac {\left (d \cos \left (2 a-\frac {2 b c}{d}\right )\right ) \int \frac {\cos \left (\frac {2 b c}{d}+2 b x\right )}{\sqrt {c+d x}} \, dx}{16 b}+\frac {\left (d \sin \left (4 a-\frac {4 b c}{d}\right )\right ) \int \frac {\sin \left (\frac {4 b c}{d}+4 b x\right )}{\sqrt {c+d x}} \, dx}{64 b}-\frac {\left (d \sin \left (2 a-\frac {2 b c}{d}\right )\right ) \int \frac {\sin \left (\frac {2 b c}{d}+2 b x\right )}{\sqrt {c+d x}} \, dx}{16 b}\\ &=-\frac {\sqrt {c+d x} \cos (2 a+2 b x)}{8 b}+\frac {\sqrt {c+d x} \cos (4 a+4 b x)}{32 b}-\frac {\cos \left (4 a-\frac {4 b c}{d}\right ) \operatorname {Subst}\left (\int \cos \left (\frac {4 b x^2}{d}\right ) \, dx,x,\sqrt {c+d x}\right )}{32 b}+\frac {\cos \left (2 a-\frac {2 b c}{d}\right ) \operatorname {Subst}\left (\int \cos \left (\frac {2 b x^2}{d}\right ) \, dx,x,\sqrt {c+d x}\right )}{8 b}+\frac {\sin \left (4 a-\frac {4 b c}{d}\right ) \operatorname {Subst}\left (\int \sin \left (\frac {4 b x^2}{d}\right ) \, dx,x,\sqrt {c+d x}\right )}{32 b}-\frac {\sin \left (2 a-\frac {2 b c}{d}\right ) \operatorname {Subst}\left (\int \sin \left (\frac {2 b x^2}{d}\right ) \, dx,x,\sqrt {c+d x}\right )}{8 b}\\ &=-\frac {\sqrt {c+d x} \cos (2 a+2 b x)}{8 b}+\frac {\sqrt {c+d x} \cos (4 a+4 b x)}{32 b}-\frac {\sqrt {d} \sqrt {\frac {\pi }{2}} \cos \left (4 a-\frac {4 b c}{d}\right ) C\left (\frac {2 \sqrt {b} \sqrt {\frac {2}{\pi }} \sqrt {c+d x}}{\sqrt {d}}\right )}{64 b^{3/2}}+\frac {\sqrt {d} \sqrt {\pi } \cos \left (2 a-\frac {2 b c}{d}\right ) C\left (\frac {2 \sqrt {b} \sqrt {c+d x}}{\sqrt {d} \sqrt {\pi }}\right )}{16 b^{3/2}}+\frac {\sqrt {d} \sqrt {\frac {\pi }{2}} S\left (\frac {2 \sqrt {b} \sqrt {\frac {2}{\pi }} \sqrt {c+d x}}{\sqrt {d}}\right ) \sin \left (4 a-\frac {4 b c}{d}\right )}{64 b^{3/2}}-\frac {\sqrt {d} \sqrt {\pi } S\left (\frac {2 \sqrt {b} \sqrt {c+d x}}{\sqrt {d} \sqrt {\pi }}\right ) \sin \left (2 a-\frac {2 b c}{d}\right )}{16 b^{3/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.29, size = 264, normalized size = 0.88 \[ \frac {-\sqrt {2 \pi } \cos \left (4 a-\frac {4 b c}{d}\right ) C\left (2 \sqrt {\frac {b}{d}} \sqrt {\frac {2}{\pi }} \sqrt {c+d x}\right )+8 \sqrt {\pi } \cos \left (2 a-\frac {2 b c}{d}\right ) C\left (\frac {2 \sqrt {\frac {b}{d}} \sqrt {c+d x}}{\sqrt {\pi }}\right )+\sqrt {2 \pi } \sin \left (4 a-\frac {4 b c}{d}\right ) S\left (2 \sqrt {\frac {b}{d}} \sqrt {\frac {2}{\pi }} \sqrt {c+d x}\right )-8 \sqrt {\pi } \sin \left (2 a-\frac {2 b c}{d}\right ) S\left (\frac {2 \sqrt {\frac {b}{d}} \sqrt {c+d x}}{\sqrt {\pi }}\right )-16 \sqrt {\frac {b}{d}} \sqrt {c+d x} \cos (2 (a+b x))+4 \sqrt {\frac {b}{d}} \sqrt {c+d x} \cos (4 (a+b x))}{128 b \sqrt {\frac {b}{d}}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.85, size = 244, normalized size = 0.82 \[ -\frac {\sqrt {2} \pi d \sqrt {\frac {b}{\pi d}} \cos \left (-\frac {4 \, {\left (b c - a d\right )}}{d}\right ) \operatorname {C}\left (2 \, \sqrt {2} \sqrt {d x + c} \sqrt {\frac {b}{\pi d}}\right ) - \sqrt {2} \pi d \sqrt {\frac {b}{\pi d}} \operatorname {S}\left (2 \, \sqrt {2} \sqrt {d x + c} \sqrt {\frac {b}{\pi d}}\right ) \sin \left (-\frac {4 \, {\left (b c - a d\right )}}{d}\right ) - 8 \, \pi d \sqrt {\frac {b}{\pi d}} \cos \left (-\frac {2 \, {\left (b c - a d\right )}}{d}\right ) \operatorname {C}\left (2 \, \sqrt {d x + c} \sqrt {\frac {b}{\pi d}}\right ) + 8 \, \pi d \sqrt {\frac {b}{\pi d}} \operatorname {S}\left (2 \, \sqrt {d x + c} \sqrt {\frac {b}{\pi d}}\right ) \sin \left (-\frac {2 \, {\left (b c - a d\right )}}{d}\right ) - 4 \, {\left (8 \, b \cos \left (b x + a\right )^{4} - 16 \, b \cos \left (b x + a\right )^{2} + 5 \, b\right )} \sqrt {d x + c}}{128 \, b^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [C] time = 1.07, size = 818, normalized size = 2.74 \[ -\frac {\frac {i \, \sqrt {2} \sqrt {\pi } {\left (8 \, b c + i \, d\right )} d \operatorname {erf}\left (-\frac {\sqrt {2} \sqrt {b d} \sqrt {d x + c} {\left (\frac {i \, b d}{\sqrt {b^{2} d^{2}}} + 1\right )}}{d}\right ) e^{\left (\frac {4 i \, b c - 4 i \, a d}{d}\right )}}{\sqrt {b d} {\left (\frac {i \, b d}{\sqrt {b^{2} d^{2}}} + 1\right )} b} - \frac {i \, \sqrt {2} \sqrt {\pi } {\left (8 \, b c - i \, d\right )} d \operatorname {erf}\left (-\frac {\sqrt {2} \sqrt {b d} \sqrt {d x + c} {\left (-\frac {i \, b d}{\sqrt {b^{2} d^{2}}} + 1\right )}}{d}\right ) e^{\left (\frac {-4 i \, b c + 4 i \, a d}{d}\right )}}{\sqrt {b d} {\left (-\frac {i \, b d}{\sqrt {b^{2} d^{2}}} + 1\right )} b} + 8 \, {\left (-\frac {i \, \sqrt {2} \sqrt {\pi } d \operatorname {erf}\left (-\frac {\sqrt {2} \sqrt {b d} \sqrt {d x + c} {\left (\frac {i \, b d}{\sqrt {b^{2} d^{2}}} + 1\right )}}{d}\right ) e^{\left (\frac {4 i \, b c - 4 i \, a d}{d}\right )}}{\sqrt {b d} {\left (\frac {i \, b d}{\sqrt {b^{2} d^{2}}} + 1\right )}} + \frac {i \, \sqrt {2} \sqrt {\pi } d \operatorname {erf}\left (-\frac {\sqrt {2} \sqrt {b d} \sqrt {d x + c} {\left (-\frac {i \, b d}{\sqrt {b^{2} d^{2}}} + 1\right )}}{d}\right ) e^{\left (\frac {-4 i \, b c + 4 i \, a d}{d}\right )}}{\sqrt {b d} {\left (-\frac {i \, b d}{\sqrt {b^{2} d^{2}}} + 1\right )}} + \frac {4 i \, \sqrt {\pi } d \operatorname {erf}\left (-\frac {\sqrt {b d} \sqrt {d x + c} {\left (\frac {i \, b d}{\sqrt {b^{2} d^{2}}} + 1\right )}}{d}\right ) e^{\left (\frac {2 i \, b c - 2 i \, a d}{d}\right )}}{\sqrt {b d} {\left (\frac {i \, b d}{\sqrt {b^{2} d^{2}}} + 1\right )}} - \frac {4 i \, \sqrt {\pi } d \operatorname {erf}\left (-\frac {\sqrt {b d} \sqrt {d x + c} {\left (-\frac {i \, b d}{\sqrt {b^{2} d^{2}}} + 1\right )}}{d}\right ) e^{\left (\frac {-2 i \, b c + 2 i \, a d}{d}\right )}}{\sqrt {b d} {\left (-\frac {i \, b d}{\sqrt {b^{2} d^{2}}} + 1\right )}}\right )} c - \frac {8 i \, \sqrt {\pi } {\left (4 \, b c + i \, d\right )} d \operatorname {erf}\left (-\frac {\sqrt {b d} \sqrt {d x + c} {\left (\frac {i \, b d}{\sqrt {b^{2} d^{2}}} + 1\right )}}{d}\right ) e^{\left (\frac {2 i \, b c - 2 i \, a d}{d}\right )}}{\sqrt {b d} {\left (\frac {i \, b d}{\sqrt {b^{2} d^{2}}} + 1\right )} b} + \frac {8 i \, \sqrt {\pi } {\left (4 \, b c - i \, d\right )} d \operatorname {erf}\left (-\frac {\sqrt {b d} \sqrt {d x + c} {\left (-\frac {i \, b d}{\sqrt {b^{2} d^{2}}} + 1\right )}}{d}\right ) e^{\left (\frac {-2 i \, b c + 2 i \, a d}{d}\right )}}{\sqrt {b d} {\left (-\frac {i \, b d}{\sqrt {b^{2} d^{2}}} + 1\right )} b} - \frac {4 \, \sqrt {d x + c} d e^{\left (\frac {4 i \, {\left (d x + c\right )} b - 4 i \, b c + 4 i \, a d}{d}\right )}}{b} + \frac {16 \, \sqrt {d x + c} d e^{\left (\frac {2 i \, {\left (d x + c\right )} b - 2 i \, b c + 2 i \, a d}{d}\right )}}{b} + \frac {16 \, \sqrt {d x + c} d e^{\left (\frac {-2 i \, {\left (d x + c\right )} b + 2 i \, b c - 2 i \, a d}{d}\right )}}{b} - \frac {4 \, \sqrt {d x + c} d e^{\left (\frac {-4 i \, {\left (d x + c\right )} b + 4 i \, b c - 4 i \, a d}{d}\right )}}{b}}{256 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.00, size = 286, normalized size = 0.96 \[ \frac {-\frac {d \sqrt {d x +c}\, \cos \left (\frac {2 \left (d x +c \right ) b}{d}+\frac {2 d a -2 c b}{d}\right )}{8 b}+\frac {d \sqrt {\pi }\, \left (\cos \left (\frac {2 d a -2 c b}{d}\right ) \FresnelC \left (\frac {2 \sqrt {d x +c}\, b}{\sqrt {\pi }\, \sqrt {\frac {b}{d}}\, d}\right )-\sin \left (\frac {2 d a -2 c b}{d}\right ) \mathrm {S}\left (\frac {2 \sqrt {d x +c}\, b}{\sqrt {\pi }\, \sqrt {\frac {b}{d}}\, d}\right )\right )}{16 b \sqrt {\frac {b}{d}}}+\frac {d \sqrt {d x +c}\, \cos \left (\frac {4 \left (d x +c \right ) b}{d}+\frac {4 d a -4 c b}{d}\right )}{32 b}-\frac {d \sqrt {2}\, \sqrt {\pi }\, \left (\cos \left (\frac {4 d a -4 c b}{d}\right ) \FresnelC \left (\frac {2 \sqrt {2}\, \sqrt {d x +c}\, b}{\sqrt {\pi }\, \sqrt {\frac {b}{d}}\, d}\right )-\sin \left (\frac {4 d a -4 c b}{d}\right ) \mathrm {S}\left (\frac {2 \sqrt {2}\, \sqrt {d x +c}\, b}{\sqrt {\pi }\, \sqrt {\frac {b}{d}}\, d}\right )\right )}{128 b \sqrt {\frac {b}{d}}}}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [C] time = 0.48, size = 425, normalized size = 1.42 \[ \frac {{\left (\frac {32 \, \sqrt {d x + c} b^{2} \cos \left (\frac {4 \, {\left ({\left (d x + c\right )} b - b c + a d\right )}}{d}\right )}{d} - \frac {128 \, \sqrt {d x + c} b^{2} \cos \left (\frac {2 \, {\left ({\left (d x + c\right )} b - b c + a d\right )}}{d}\right )}{d} + {\left (-\left (8 i - 8\right ) \cdot 4^{\frac {1}{4}} \sqrt {2} \sqrt {\pi } b \left (\frac {b^{2}}{d^{2}}\right )^{\frac {1}{4}} \cos \left (-\frac {2 \, {\left (b c - a d\right )}}{d}\right ) - \left (8 i + 8\right ) \cdot 4^{\frac {1}{4}} \sqrt {2} \sqrt {\pi } b \left (\frac {b^{2}}{d^{2}}\right )^{\frac {1}{4}} \sin \left (-\frac {2 \, {\left (b c - a d\right )}}{d}\right )\right )} \operatorname {erf}\left (\sqrt {d x + c} \sqrt {\frac {2 i \, b}{d}}\right ) + {\left (\left (2 i - 2\right ) \, \sqrt {2} \sqrt {\pi } b \left (\frac {b^{2}}{d^{2}}\right )^{\frac {1}{4}} \cos \left (-\frac {4 \, {\left (b c - a d\right )}}{d}\right ) + \left (2 i + 2\right ) \, \sqrt {2} \sqrt {\pi } b \left (\frac {b^{2}}{d^{2}}\right )^{\frac {1}{4}} \sin \left (-\frac {4 \, {\left (b c - a d\right )}}{d}\right )\right )} \operatorname {erf}\left (2 \, \sqrt {d x + c} \sqrt {\frac {i \, b}{d}}\right ) + {\left (-\left (2 i + 2\right ) \, \sqrt {2} \sqrt {\pi } b \left (\frac {b^{2}}{d^{2}}\right )^{\frac {1}{4}} \cos \left (-\frac {4 \, {\left (b c - a d\right )}}{d}\right ) - \left (2 i - 2\right ) \, \sqrt {2} \sqrt {\pi } b \left (\frac {b^{2}}{d^{2}}\right )^{\frac {1}{4}} \sin \left (-\frac {4 \, {\left (b c - a d\right )}}{d}\right )\right )} \operatorname {erf}\left (2 \, \sqrt {d x + c} \sqrt {-\frac {i \, b}{d}}\right ) + {\left (\left (8 i + 8\right ) \cdot 4^{\frac {1}{4}} \sqrt {2} \sqrt {\pi } b \left (\frac {b^{2}}{d^{2}}\right )^{\frac {1}{4}} \cos \left (-\frac {2 \, {\left (b c - a d\right )}}{d}\right ) + \left (8 i - 8\right ) \cdot 4^{\frac {1}{4}} \sqrt {2} \sqrt {\pi } b \left (\frac {b^{2}}{d^{2}}\right )^{\frac {1}{4}} \sin \left (-\frac {2 \, {\left (b c - a d\right )}}{d}\right )\right )} \operatorname {erf}\left (\sqrt {d x + c} \sqrt {-\frac {2 i \, b}{d}}\right )\right )} d}{1024 \, b^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \cos \left (a+b\,x\right )\,{\sin \left (a+b\,x\right )}^3\,\sqrt {c+d\,x} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {c + d x} \sin ^{3}{\left (a + b x \right )} \cos {\left (a + b x \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________